package com.imooc.api.feign;

import com.imooc.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("work-service")    // 告诉 SpringCloud，本接口为调用远程服务的service（声明式客户端远程调用）
public interface WorkMicroServiceFeign {

    /**
     * 寻找 work-service 微服务下的，/resume/init 接口
     * @param userId
     * @return
     */
    @PostMapping("/resume/init")
    public GraceJSONResult init(@RequestParam("userId") String userId);
}
